import Vue from "vue";
import Vuex from "vuex";
import "./app.less";
import "taro-ui/dist/style/index.scss";
import "taro-ui-vue/dist/style/components/icon.scss";
import { questionnaireStore } from "./store/questionnaire-store";
import { userStore } from "./store/user-store";
import { taskStore } from './store/task-store';
import { productStore } from './store/product-store';
import { healthyTestStore } from "./store/healthy-test-store";
Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    questionnaire: questionnaireStore,
    user: userStore,
    products: productStore,
    task: taskStore,
    healthyTest: healthyTestStore
  }
})
const App = {
  store,
  onShow(options) {
    console.log(options);
  },
  render(h) {
    // this.$slots.default 是将要会渲染的页面
    return h("block", this.$slots.default);
  }
};

export default App;
